package restful.struts2.app1;

import javax.ws.rs.*;

import restful.struts2.*;

public class StatusAction {
	
	private String code;
	
	public void setCode(String code) {
		this.code = code;
	}
	
	@POST
	@Path("/status/{code}")
	public HttpHeaders create() {
		return new DefaultHttpHeaders().withStatus(Integer.parseInt(code));
	}

}
